package com.example.threaddemo.RunnableClass;

import com.example.threaddemo.ThreadClass.RunnableDemo;

public class RunnableClassDemo {
    public static void main(String[] args) {
        RunnableDemo runnableDemo = new RunnableDemo();
        Thread t1 = new Thread(runnableDemo);
        Thread t2 = new Thread(runnableDemo);
        t1.setName("t1线程");
        t2.setName("t2线程");
        t1.start();
        t2.start();

    }
}
